
import java.io.IOException;

import org.apache.hadoop.ipc.ProtocolSignature;
import org.apache.hadoop.ipc.VersionedProtocol;

public class MyInterfaceImpl implements MyInterface {


    public String sayHi(String name) {
        System.out.println("name..." + name);
        return "Hi, " + name;


    }

    public String findName(long studentId) {
        if (studentId == 210000000000L) {
            System.out.println("cannot find.");
            return null;
        }
        else if (studentId == 210123456789L) {
            return "心心";
        } else if (studentId == 20210698010279L ) {
            return "崔伟财";
        }

        return null;
    }


    //@Override
    public long getProtocolVersion(String protocol, long clientVersion) throws IOException {

        //return MyInterface.versionID;
        return versionID;

    }

    public ProtocolSignature getProtocolSignature(String protocol, long clientVersion, int clientMethodsHash) throws IOException {

        return new ProtocolSignature();


    }
}